# -*- coding: utf-8 -*-
# @Time    : 2024/1/14 20:15
# @Author  : micah
# @File    : 21.确定匹配次数 - '{}'.py
# @Software: PyCharm

import re


content = '红彤彤，绿油油，黑乎乎，绿油油油油'

for temp in re.findall(r'油{2,3}', content):
    print(temp)
